<?php

use think\migration\Migrator;
use think\migration\db\Column;

class BasicControlType extends Migrator
{
    /**
     * 管控 - 类型
     */
    public function change()
    {
        $table = $this->table('basic_control_type');
        $table
            //step1:污染物名称
            ->addColumn('name', 'string', ['limit' => 50, 'comment'=>'管控类型',])

            //插入时间
            ->addColumn('delete_time', 'integer', ['limit' => 11, 'comment'=>'软删除',])

            //注释
            ->setComment('基本信息 - 管控类型')

            //引擎
            ->setEngine('InnoDB')
            ->save();
    }
}
